'use strict';

var express = require('express');
var controller = require('./dialog_controller');
var auth = require('../../../auth/authorization');

var router = express.Router();

// 获取话术分类
router.get('/speakart/classification/list', auth.authorize, controller.getSpeakArtClassifications);

// 添加话术分类
router.post('/speakart/classification/create', auth.authorize, controller.createSpeakArtClassification);

// 编辑话术分类
router.post('/speakart/classification/update', auth.authorize, controller.updateSpeakArtClassification);

// 删除话术分类
router.post('/speakart/classification/delete', auth.authorize, controller.deleteSpeakArtClassification);

// 获取话术
router.get('/speakart/list', auth.authorize, controller.getSpeakArts);

// 添加话术
router.post('/speakart/create', auth.authorize, controller.createSpeakArt);

// 编辑话术
router.post('/speakart/update', auth.authorize, controller.updateSpeakArt);

// 删除话术
router.post('/speakart/delete', auth.authorize, controller.deleteSpeakArt);

module.exports = router;
